package com.hxalex.simulationhandle.accessbilityService.receiver.search;

import android.util.Log;

import com.hxalex.simulationhandle.accessbilityService.manger.SearchManger;
import com.hxalex.simulationhandle.accessbilityService.receiver.base.BaseReceiver;

/**
 * Created by hx_Alex on 2018/5/26.
 */

public class OpenBrowserReceiver extends BaseReceiver {
  

    public OpenBrowserReceiver(SearchManger searchManger) {
        super(searchManger);
        FLAG="打开浏览器命令";
    }

    @Override
    public void doSomething() {
        if(!isPrintCommandMsg)
        {
            Log.w("OpenBrowserReceiver","开始执行"+FLAG);
            isPrintCommandMsg=true;
        }
        searchManger.openBrowser();
        commandCompleteListener.commandCompleteListener();
    }
}
